#ifndef _IH_H
#define _IH_H
/*
  author Sylvain Bertrand <digital.ragnarok@gmail.com>
  Protected by GNU Affero GPL v3 with some exceptions.
  See README at root of alga tree.
*/
#define IH_RING_LOG2_DWS 14
#define IH_RING_MASK (((1 << IH_RING_LOG2_DWS) * 4) - 1)

struct ih {
	spinlock_t lock;
	u32 rp;		/* the index of the next vector to process */
};
void ih_stop(struct pci_dev *dev);
void ih_start(struct pci_dev *dev);
void ih_init(struct pci_dev *dev);
bool ih_parse(struct pci_dev *dev);
#endif /* _IH_H */

